package org.edu.modules.jxrw.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.edu.modules.jxrw.entity.VeJwPkmx;
import org.edu.modules.jxrw.mapper.VeJwPkmxMapper;
import org.edu.modules.jxrw.service.IVeJwPkmxService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: ve_jw_pkmx
 * @Author: jeecg-boot
 * @Date:   2021-05-07
 * @Version: V1.0
 */
@Service
public class VeJwPkmxServiceImpl extends ServiceImpl<VeJwPkmxMapper, VeJwPkmx> implements IVeJwPkmxService {

    @Override
    public List<VeJwPkmx> getByJsid(int id) {
        return baseMapper.selectList(new QueryWrapper<VeJwPkmx>().eq("teacherId",id));
    }

    @Override
    public List<VeJwPkmx> getByJxrwid(int id) {
        return baseMapper.selectList(new QueryWrapper<VeJwPkmx>().eq("jxrwId",id));
    }
}
